package com.grape.dto;

import com.grape.annotation.ValidDeviceType;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * 类描述： SysUserDTO类
 *
 * @author  putao
 * @email   2628279194@qq.com
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SysUserDTO {

    @NotBlank(message = "用户名不能为空")
    @ApiModelProperty(value = "用户名")
    private String username;

    @NotBlank(message = "密码不能为空")
    @ApiModelProperty(value = "密码")
    private String password;

    @ValidDeviceType
    @ApiModelProperty(value = "类型")
    private String type;

}
